<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>入局列表</title>
<link rel="stylesheet" type="text/css"
	href="<?=base_url()?>public/css/style.css">
<script type="text/javascript"
	src="<?=base_url()?>public/js/jq.1.12.4.js"></script>
<script type="text/javascript" src="<?=base_url()?>public/js/js.js"></script>
<style type="text/css">
#page{height:32px;line-height:32px;margin-top:15px;margin-bottom:15px;text-align:left;}
#page a{background:#fff;border-radius:5px;float:left;display:block;padding:0 12px;line-height:32px;border:1px solid #ddd;margin-right:5px;font-size:12px;font-weight:bold;color:#444;}
#page a:hover{background:#f6f6f6}
#page a.cur{color:red;background:#444;border:1px solid #444;color:#fff;}
#page a.noborder{border:none;margin:0 2px;}


</style>
</head>
<body>
	<!-- 头部 -->
	<?php echo $menu?>
	<!-- 主体 -->
	<div class="main clearfix">
		<?php echo $left?>
		<div class="content">
			<div class="con">
				<div class="bikuang">
					<div class="right_title">
						<span>出入局管理&nbsp;&nbsp; -<span style="color: #1d3e00; margin: 0;">&nbsp;&nbsp;入局列表</span></span>
					</div>
					<div class="person1">
						<table cellpadding="0" cellspacing="0">
							<tr>
								<th>公益编号</th>
								<th>账号</th>
								<th>姓名</th>
								<th>申请日期</th>
								<th>金额</th>
								<th>状态</th>
								<th>匹配优先</th>
							</tr>
                            <?php foreach($order_list as $log): ?>
							<?php 
							$me = $this->user_model->get_user_info_id ( $log ['user_id'] );
							?>
                            <tr>
								<td><?php echo $log['bianhao']?></td>
								<td><?php echo $me['user_account']?></td>
								<td><?php echo $me['user_name']?></td>
								<td class="number"><?php echo  date('Y-m-d H:i:s',$log['create_time'])?></td>
								<td><?php echo $log['money']?></td>
								<td>
								<?php 
									if ($log['status'] == '0'){
										echo "等待中";
									} elseif($log['status'] == '1') {
										echo "已匹配";
									} elseif($log['status'] == '12') {
										echo "已打款";
									} elseif($log['status'] == '13') {
										echo "交易完成";
									}
									
								?>
								</td>
								<td class="green">
                                    
								<?php 
									if ($log['yxflag'] == '0'){
								?>
										<a href="<?php echo site_url('admin/offer/doyxflag/1/'.$log['id']) ?>" >优先</a>
								<?php } else { ?>
										<a href="<?php echo site_url('admin/offer/doyxflag/2/'.$log['id']) ?>" >恢复</a>
								<?php	}?>
								
                                </td>
                            </tr>
                            <?php endforeach; ?>
                        </table>
					</div>
					<?php echo $multi;?>
				</div>
			</div>
		</div>
	</div>
</body>
</html>